<?php
class DataStaffBasicAction extends CommonAction {
    
    protected $_str_model           = 'DataStaffBasic';
    protected $_arr_search          = array(
                                            'staff_id'    => array('LIKE', '%?%', 'int'),
                                            'staff_name'  => array('LIKE', '%?%', 'str'),
                                            'id_card'     => array('LIKE', '%?%', 'str'),
                                            'mobile'      => array('LIKE', '%?%', 'str'),
                                            'nation'      => array('LIKE', '%?%', 'str'),
                                            'hometown'    => array('LIKE', '%?%', 'str'),
                                            'address'     => array('LIKE', '%?%', 'str'),
                                            'birthday'    => array('BETWEEN', '?1, ?2', 'str'),
                                            'gender'      => array('EQ', '?', 'int'),
                                            'is_on_work'  => array('EQ', '?', 'int'),
                                            'status'      => array('EQ', '?', 'int'),
                                      );
    protected $_str_status_type     = 'all';
                   
    /**
     * Set params
     * global settings, for index, edit, add
     *
     * @param  void
     * @return void
     * @author andy
     */
    public function set_params() {

        $this->assign('arr_gender', $this->get_field_info('gender'));
    }
}